package com.athuiju.hr.service.impl;

import com.athuiju.hr.entity.Position;
import com.athuiju.hr.mapper.PositionMapper;
import com.athuiju.hr.service.PositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wzh
 * @since 2021-12-15
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements PositionService {
@Autowired
PositionMapper positionMapper;

    /**
     * 根据id查询职位信息*/
    @Override
    public List<Position> getById(String sectorId) {
        return positionMapper.getByid(sectorId);
    }
}
